<?php
include("function.php");
mssql_select_db($mssql_database, $conn);
$Vchcode = $_POST['id'];
$val = $_POST['value'];
$val = htmlspecialchars($val, ENT_QUOTES);
if ($field == "note") {
    if (strlen($val) > 100) {
        echo "您输入的字符大于100字了";
        exit;
    }
}
$query = mssql_query("update dzxt set yh='$val',debt=total-cash-'$val' where Vchcode='$Vchcode'");
    if ($query) {
        echo $val;
    } else {
        echo "数据出错";
    }

?>